<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Election08</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for Election08"><tr><td>Election08</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Election08</h2>

<h3>Description</h3>

<p>State-by-state information from the 2008 U.S. presidential election
</p>


<h3>Format</h3>

<p>A dataset with 51 observations on the following 7 variables.
</p>

<table summary="Rd table">
<tr>
 <td style="text-align: right;">
    <code>State</code> </td><td style="text-align: left;"> Name of the state</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Abr</code> </td><td style="text-align: left;"> Abbreviation for the state</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Income</code> </td><td style="text-align: left;"> Per capita income in the state as of 2007 (in dollars)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>HS</code> </td><td style="text-align: left;"> Percentage of adults with at least a high school education</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>BA</code> </td><td style="text-align: left;"> Percentage of adults with at least a college education</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>Dem.Rep</code> </td><td style="text-align: left;"> Difference in %Democrat-%Republican (according to 2008 Gallup survey)</td>
</tr>
<tr>
 <td style="text-align: right;">
    <code>ObamaWin</code> </td><td style="text-align: left;"> <code>1</code>= Obama (Democrat) wins state in 2008 or <code>0</code>=McCain (Republican wins)</td>
</tr>
<tr>
 <td style="text-align: right;">
  </td>
</tr>

</table>



<h3>Details</h3>

<p>This dataset contains information from all 50 states and the District of Columbia for the 2008 U.S. presidential election. 
</p>


<h3>Source</h3>

<p>State income data from: Census Bureau Table 659. Personal INcome Per Capita (in 2007)<br />
High school data from: U.S. Census Bureau, 1990 Census of Population, http://nces.ed.gov/programs/digest/d08/tables/dt08_011.asp <br />
College data from: Census Bureau Table 225. Educational Attainment by State (in 2007)<br />
% Democrat and % Republican: http://www.gallup.com/poll/114016/state-states-political-party-affiliation.aspx#1
</p>


</body></html>
